import os
import datetime
###***Creates a new directory in current working directory (named the current time) and changes to that directory***###
mydir = os.path.join(os.getcwd(), datetime.datetime.now().strftime('%Y-%m-%d_%H-%M-%S'))
os.makedirs(mydir)
os.chdir(mydir)